#ifndef LEXER_H_INCLUDED
#define LEXER_H_INCLUDED

#include "../typedef/token.h"

#include <stdio.h>

typedef struct _lexer Lexer;

//对buff区进行词法解析,并把结果放入到lexer中
Lexer *LexerParser(char *buff,int len);
//获取位置最靠前的记号,
Token *LexerGetToken(Lexer *plexer);

void LexerPush(Lexer *plex,Token *ptoken);

void LexerPrint(Lexer *plex,FILE *fl);

void LexerRemove(Lexer *plex,int type);

#endif // LEXER_H_INCLUDED
